package com.csg.ses.dao.ses;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.csg.ses.entity.ses.MenuItemEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 菜单
 * @author wangjun
 * @date 2020/11/16
 */
@Mapper
public interface MenuItemDao extends BaseMapper<MenuItemEntity> {
    List<MenuItemEntity> getMenuRights(String loginId);
    List<MenuItemEntity> getByParentCode(String loginId, String parentCode);
    MenuItemEntity generateMenuCodeAndOrderCode(String parentCode);
    List<MenuItemEntity> getAllMenus();
}